package Test1225;

public class Test01 {
        public static void main(String[] args) {

            // 返回3个变量中的最大值
            int a = 2;
            float b = 3.0F;
            double c = 4.0;
            double d = m01(a, b, c);
            System.out.println(d);

        }
        public static double m01(int x, float y, double z) {
            return Math.max(Math.max(x,y),z);
        }
    }


